<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .user-avatar {
            height: 64px;
            width: 64px;
            border: 1px solid #ddd;
            padding: 5px;

            border-radius: 50%;
        }
        .avatar-image {
            height: 100%;
            width: 100%;
            object-fit: cover; 
            
            border-radius: 50%;
          /*按图片原有尺寸比例来裁剪*/
        }
      </style>
</head>
<body>
    <div class="user-avatar">
        <img class="avatar-image" src="../meinv.jpg" />
    </div>
</body>
</html>